package com.example.food_contract_system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.food_contract_system.domain.SysRegion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author LiHaoyang
 * @date 2023/7/6  12:17
 **/
@Mapper
public interface SysRegionMapper extends BaseMapper<SysRegion> {

    List<SysRegion> getParentList();

    List<SysRegion> getChildrenList(@Param("regionId") String regionId);
}
